home *** CD-ROM | disk | FTP | other *** search
- property currentSectionObject, listOfSounds, soundCounter, howManySounds, pathString
-
- on birth me, sectionObject, soundList, musicPath
- set currentSectionObject to sectionObject
- set listOfSounds to soundList
- set howManySounds to count(listOfSounds)
- set soundCounter to 0
- set pathString to musicPath
- return me
- end
-
- on update me
- if not soundBusy(1) then
- set soundCounter to soundCounter + 1
- if soundCounter > howManySounds then
- stopSound(currentSectionObject)
- else
- sound playFile 1, pathString & getAt(listOfSounds, soundCounter)
- updateStage()
- end if
- end if
- end
-